import { Button } from "antd";
import { useRouter } from 'next/router';

export default function Home() {
  const router = useRouter();

  const handleClick = () => {
    router.push('/');
  }

  return (
    <div>
      <h1>Hello</h1>
      <Button onClick={handleClick}>Ant Design Button</Button>
    </div>
  );
}
